package com.telit.firecommand.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@ApiModel(value = "字典表")
public class Dict implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "父节点id")
    private Integer parentId;

    @ApiModelProperty(value = "字典代码")
    private String configCode;
    @ApiModelProperty(value = "字典名称")
    private String configName;

    @ApiModelProperty(value = "字典类型 用来定义此配置的关键性，如：1系统内置 2用户添加")
    private Integer configType;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;


    @ApiModelProperty(value = "层级代码")
    private String levelCode;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "出生日期")
    private Date dateCreate;

}